package com.chzc.fm.duotin.ui.home.utils;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;

import com.chzc.fm.duotin.R;
import com.chzc.fm.duotin.ui.home.DingShiKaiGuanActivity;
import com.chzc.fm.duotin.ui.home.JieMuXinXiActivity;
import com.chzc.fm.duotin.ui.home.Play1PlayListActivity;
import com.chzc.fm.duotin.ui.home.Player1Activity;
import com.chzc.fm.duotin.ui.home.PullListViewActivity;
import com.chzc.fm.duotin.ui.home.PullListViewActivity2;
import com.chzc.fm.duotin.utils.LogUtil;

/**
 * Created by Administrator on 2016/6/27.
 */
public class JumpManager {

    public static void jumpToPlayer1(Context context,String id){
        LogUtil.e("player1 Url="+id);

        Intent intent = new Intent(context, Player1Activity.class);
        //这里添加传送的数据
        intent.putExtra("urlID",id);
        context.startActivity(intent);

    }
    //跳转到下载1界面
    public static void jumpTopicListView(Context context,String id){
        Intent intent = new Intent(context, PullListViewActivity.class);
        //这里添加传送的数据
        intent.putExtra("urlID",id);
        context.startActivity(intent);
    }
    //跳转到下载2界面
    public static void jumpTopicListView2(Context context,String id){
        Intent intent = new Intent(context, PullListViewActivity2.class);
        //这里添加传送的数据
        intent.putExtra("urlID",id);

        context.startActivity(intent);

    }

    //跳转到下载界面
    public static void jumpPlay1PlyList(AppCompatActivity activity, String id){
        Intent intent = new Intent(activity, Play1PlayListActivity.class);
        //这里添加传送的数据
        intent.putExtra("urlID",id);
        activity.startActivity(intent);
        activity.overridePendingTransition(R.anim.activity_open, 0);
    }

    //跳转到主播信息页面

    public static void jumpPlay1MsgPlyList(AppCompatActivity activity, String id){
        Intent intent = new Intent(activity, JieMuXinXiActivity.class);
        //这里添加传送的数据
        intent.putExtra("urlID",id);
        activity.startActivity(intent);
        activity.overridePendingTransition(R.anim.activity_open, 0);
    }
    //跳转到定时开关页面

    public static void jumpPlay1DingShi(AppCompatActivity activity){
        Intent intent = new Intent(activity, DingShiKaiGuanActivity.class);
        //这里添加传送的数据
        activity.startActivity(intent);
        activity.overridePendingTransition(R.anim.activity_open, 0);
    }

}
